/**
 * 
 */
package com.exject.android.socialphonebook.logutil.data;

import java.util.Date;

import com.exject.android.socialphonebook.data.Contact;

/**
 * @author Benjamin Nagel <benjamin.nagel@stud.fh-dortmund.de>
 */
public abstract class LogEntry {
    protected int id;
    protected String number;
    protected Date date;
    protected Contact contact;
    protected int type;
    
    public LogEntry(int id, String number, Date date, int type, Contact contact) {
        this(id, number, date, type);
        this.contact = contact;
    }
    
    public LogEntry(int id, String number, Date date, int type) {
        this.number = number;
        this.date = date;
        this.type = type;
    }
    
    public final int getId() {
        return this.id;
    }
    
    public final String getNumber() {
        return this.number;
    }
    
    public final Date getDate() {
        return this.date;
    }
    
    public final Contact getContact() {
        return this.contact;
    }
    
    public final int getType() {
        return this.type;
    }
    
    public boolean hasContact() {
        return this.contact != null;
    }
}
